import http from "@/utils/request";
// 获取审批列表
export const getApprovalList = (data) => {
    return http.get("/rsgl/approval/list", data);
};
// 获取审批详情
export const getApprovalById = (data) => {
    return http.get(`/rsgl/approval/get/${data}`);
};
// 修改审批
export const updateApproval = (data) => {
    return http.put("/rsgl/approval/update", data);
};
// 删除审批
export const deleteApprovalById = (data) => {
    return http.delete(`/rsgl/approval/delete/${data}`);
};
// 新增审批
export const addApproval = (data) => {
    return http.post("/rsgl/approval/add", data);
};
